package com.imooc.collection

object TupleApp extends App{

  val a = (1,2,3,4,5)
  println(a)

  println(a._1)
  println(a._2)

  for(i <- 0 until (a.productArity)){
    println(a.productElement(i))
  }

  val hostPort = ("localhost",8080)

  hostPort._1
  hostPort._2


}
